/*
 * IndividualsCounterVisitor.cpp
 *
 *  Created on: 08-01-2011
 *      Author: Przemek
 */

#include "world/visitors/IndividualsCounterVisitor.hpp"

IndividualsCounterVisitor::IndividualsCounterVisitor() :
	counter(0)
{

}

void IndividualsCounterVisitor::visit(Barrier&)
{

}

void IndividualsCounterVisitor::visit(Individual&)
{
	++counter;
}

void IndividualsCounterVisitor::visit(MeatSupply&)
{

}

void IndividualsCounterVisitor::visit(VegetableSupply&)
{

}

void IndividualsCounterVisitor::visit(WaterSupply&)
{

}

int IndividualsCounterVisitor::getCounter()
{
	return counter;
}
